<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/lib/bootstrap.min.css"/>
    <script src="js/lib/jquery-1.11.0.js"></script>
    <script src="js/lib/bootstrap.min.js"></script>
</head>

<body ng-app="myApp" ng-controller="customersCtrl">
<div>
    <textarea name="" id="text" cols="30" rows="10" style="width:300px;height:500px;">
        122
    </textarea>
</div>
</body>
<script>
    $(function(){
        /*接口前缀*/

        var url02 = window.baseUrl;
        /*获取登陆人的token*/
        var token = sessionStorage.getItem(key=1);
        console.log(token);
        $.ajax({
            /*返回当前用户的贴牌信息*/
            url:url02+"user/brand/user/"+token,
            type:"GET",
            dataType:"json",
            data:{
                
            },
            success:function(data){
                console.log("接口调用成功");
                console.log(data);
            },
            error:function(data){
                console.log("接口调用失败！")
            }
        })
        /*交易记录查看*/
        $('#jy').click(function(){
            /*$('#div1').hide()*/
            $('#div2').show()
        })
        /*添加备注的接口*/
        $.ajax({
            url:url02+"user/update/remarks",
            type:"post",
            dataType:"json",
            data:{
                userId:433837908,
                remarks:"你好啊   你在干嘛"
            },
            success:function(data){
                console.log("接口调用成功");
                console.log(data);
            },
            error:function(data){
                console.log("接口调用失败！")
            }
        })
    })
</script>

</html>

